package com.example.tang5.myapplication;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.example.tang5.myapplication.im.Network.IMTCPClient;

public class MainActivity extends AppCompatActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		final EditText etContent = (EditText) findViewById(R.id.et_content);
		Button btnSend = (Button) findViewById(R.id.btn_send);
		EditText etScreen = (EditText) findViewById(R.id.et_screen);

		btnSend.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				IMTCPClient imtcpClient = new IMTCPClient();
				imtcpClient.start();
			}
		});
	}
}
